Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): include the environment variables section in the utilities documentation #2925

Merged

Conversation

barreeeiroo
Copy link
Contributor

Issue number: #2923
Supersedes: #2922

Summary

Clarifies some documentation pages by including their related environment variables. They were only included on the main page, though it may be useful to also mention them on their corresponding page.

Changes

For each page, a new Environment variables section was created under Getting started right before Advanced. This section contains a table listing all environment variables affecting that page. It also mentions the preference order (parameter overrides environment variable).

User experience

When navigating through documentation, developers will now find the environment variables for each core/utility on its page. It is useful as it allows us to quickly understand the behaviour of these environment variables by Ctrl+F'ing them.

This comes from personal experience, as I found out about Tracer's environment variables by checking the parameters of Tracer decorators' source code. But when going to Tracer's documentation page, I couldn't find these environment variables, until I realized they were only in the main page.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

No.

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

Clarifies Tracer's documentation page by including its related environment variables.
Clarifies Logger's documentation page by including its related environment variables.
Clarifies Metrics' documentation page by including its related environment variables.
Clarifies middleware factory's documentation page by including its related environment variables.
Clarifies parameters utility's documentation page by including its related environment variables.
@barreeeiroo barreeeiroo requested a review from a team as a code owner August 4, 2023 16:40
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Aug 4, 2023
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 4, 2023
@leandrodamascena
Copy link
Contributor

Thanks for sending this PR @barreeeiroo!!

Hei @heitorlessa! Since I don't have the context here, I'd like your review or we can sync tomorrow and I can review.

Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @barreeeiroo! I made a couple of small comments and after that I think we're ready to merge!

Thank you very much.

docs/utilities/middleware_factory.md Outdated Show resolved Hide resolved
docs/core/logger.md Show resolved Hide resolved
It should be the last one under Getting Started and right before Advanced.
As basic configuration mentions a few environment variables, it may be useful to provide a link to all the other available ones.
@heitorlessa heitorlessa linked an issue Aug 9, 2023 that may be closed by this pull request
1 task
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@leandrodamascena leandrodamascena self-requested a review August 9, 2023 22:54
@leandrodamascena leandrodamascena changed the title chore(docs): include environment variables chore(docs): include the environment variables section in the utilities documentation Aug 9, 2023
@github-actions github-actions bot added the internal Maintenance changes label Aug 9, 2023
Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic work @barreeeiroo! This will make it easier for our customers to find environment variables that can be used in each utility.

image

@leandrodamascena leandrodamascena merged commit e800128 into aws-powertools:develop Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation internal Maintenance changes size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Include environment variables in Tracer
2 participants